package func;

public class func {

    public static boolean isNumInArray(int pNum, int[] pArr){
        for(int i=0; i< pArr.length; i++){
            if(pNum==pArr[i]-1){
                return true;
            }
        }
        return false;
    }

    public static int rand(int num) {
        double random;
        random = Math.random() * (num + 1);
        int rand = (int) random;
        return rand;
    }
}
